home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 5⁄25⁄90 / 1321-TGridView.IRes Bug-May90 < prev    next >
Encoding:
Text File  |  1990-05-25  |  1.3 KB  |  32 lines  |  [TEXT/GEOL]

  1. Item    7144701                         21-May-90        10:40PDT
  2.  
  3. From:   D1974                           NorthWest Rsch Assoc, D Lucas,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. cc:     MACAPP.TEST                     MacApp SQA Team
  8.         D1974                           NorthWest Rsch Assoc, D Lucas,PRT
  9.  
  10. Sub:    TGridView.IRes Bug
  11.  
  12. This is a bug report for TGridView.IRes and TGridView.IGridView (ß9).  These
  13. methods do not set handle-based instance variables to NIL before performing
  14. code that can fail and call Free. TGridView.IRes starts by calling inherited
  15. IRes, which is TView.IRes, which calls TView.IView, which can fail and free
  16. SELF.  If that happened, TGridView.Free will attempt to dispose of three
  17. regions (fSelections, fHLRegion, and fTempSelections) and two TRunArrays
  18. (fColWidths and fRowHeights) which were not initialized.  Boom!  IGridView does
  19. initialize fColWidths and fRowHeights before calling IView, but leaves the
  20. three regions uninitialized.
  21.  
  22. I was bitten by the TGridView.IRes bug.  My fix is to NIL the five variables in
  23. my override of this method before calling the inherited IRes.  (I had already
  24. overriden this method for other reasons.)
  25.  
  26. Let me know if I am wrong about this.  Please address links to me at D1974, as
  27. I am not tracking MACAPP.TECH$.
  28.  
  29. Dave Lucas,
  30. Visualogic, Inc.
  31.  
  32.